<template>
  <div class="radio" @click="click"><div class="yuan" :class="[ checked ? 'rdactive':'']"><div class="mini-yuan"></div></div></div>
</template>
<script>
export default {
  name: '',
  data() {
    return {
    }
  },
  props:{
    checked:{
      default: false
    }
  },
  methods: {
    click(){
      this.$emit('click')
    }
  }
}
</script>
<style scoped>
.radio{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.yuan{/*大圈*/
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    background-color: #ececec;/*这里写自己喜欢的颜色*/
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
}
.rdactive{
    background-color: rgba(70,120,245,1);/*这里写自己喜欢的颜色*/
}
.mini-yuan{
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  background-color: white;/*这里写自己喜欢的颜色*/
}
</style>